# -*- coding=utf-8 -*-
from ..api_requestor import ApiRequestor
from ..utils import Utils


class RequestApi(ApiRequestor, Utils):

    @classmethod
    def call_api(cls, url, params):
        data = Utils.treated_params(params)
        return cls.__request_post_api(url, data)

    @staticmethod
    def __request_post_api(url, data):
        return ApiRequestor.call_request("POST", url, data)
